package com.minutes.in.seconds.ui.screens;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.minutes.in.seconds.R;
import com.minutes.in.seconds.ui.event.LibraryEventHandler;

public class LibraryActivity extends Fragment {

	private View mAddNew;
	
	private View mSearch;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.activity_library,
		        container, false);
		
		mAddNew = view.findViewById(R.id.btnAddNew);
		mSearch = view.findViewById(R.id.btnSearch);
        
        LibraryEventHandler eventHandler = new LibraryEventHandler(this);
        mAddNew.setOnClickListener(eventHandler);
        mSearch.setOnClickListener(eventHandler);
        
        return view;
	}

	public View getmAddNew() {
		return mAddNew;
	}

	public View getmSearch() {
		return mSearch;
	}
}
